﻿@if (!Request.IsAuthenticated || User.Identity.Name == COM.Web.WebAnonymousPermissionRole.Instance.UserCode)
{
    <li id="LogOn"><a title="会员登录" href="@Url.Content("~/Default/Account/LogOn")"><b class="menuItem ico-a"></b>登录</a></li>
    @*<li id="Register"><a title="注册新会员" href="@Url.Content("~/Account/Register")"><b class="menuItem ico-b"></b>注册</a></li>*@
}
else
{    
    <li id="UserInfo">@Html.ActionLink((Context.User as COM.Service.PermissionUserPrincipal).UserName, "UserInfo", "Account")</li>
    <li id="LogOff">@Html.ActionLink("退出", "LogOff", "Account")</li>
}
